#include "pch.h"

ActionManager::ActionManager()
{
	//command idle
	memset(m_RobotCommandTranslator, 0, sizeof(m_RobotCommandTranslator));
	//command move forward
	m_RobotCommandTranslator[Command_MoveForward][Part_TypeBody]	= Part_ActionIdle;
	m_RobotCommandTranslator[Command_MoveForward][Part_TypeWheel]	= Part_ActionMoveForward;

	//command move back
	m_RobotCommandTranslator[Command_MoveBack][Part_TypeBody]	= Part_ActionIdle;
	m_RobotCommandTranslator[Command_MoveBack][Part_TypeWheel]	= Part_ActionMoveBack;

}

ActionManager::~ActionManager()
{
	
}

PartAction ActionManager::GetPartAction(RobotCommandState c, PartType p)
{
	return m_RobotCommandTranslator[c][p];
}

// update
void ActionManager::OnUpdate(float frameTime)
{

}